package com.hxx.controller;
import java.util.List;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.hxx.entity.User;
import com.hxx.service.UserService;

@RestController
public class UserController {

    @RequestMapping("all")
    public List<User> getAll(){
        UserService us = new UserService();
        List<User> userList=us.selectAll();
        return userList;
    }


}
